var url = require('url');
var path = "http://www.baidu.com?username=temo&pass=123456";

var t =  url.parse(path , true)

// console.log( t );
console.log( t.query.username);
console.log( t.query.pass);